﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Car
{
    class SmallCar:xiucar 
    {
        public string name { get; set; }
        public string Color { get; set; }
        public int Number { get; set; }
        public void Action()
        {
            if (Number >= 4) 
            { 
                Console.WriteLine("车子可以跑起");
            }
            else
            {
                xiucar.xiuxar();
                Console.WriteLine("请输入修车厂名字");
                xiucarname = Console.ReadLine();
                Console.WriteLine("请输入修车厂地址");
                Address = Console.ReadLine();
                Console.WriteLine("请输入修车厂电话");
                phone =int.Parse ( Console.ReadLine());
            }
            Console.WriteLine("完成");
        }
    }
}
